import { defineStore } from "pinia";

function initState() {
    return {
        wsMenus: [],//默认菜单栏不收缩

    }
}

export const useMenuStore = defineStore("menu", () => {
    const state = ref(initState())
    function initMenu(value) {
        state.value.wsMenus = value;
    }
    return { state, initMenu }
},
    {
        persist: false
    })